package DBLayer;

import java.util.ArrayList;

import ModelLayer.Supplier;

public interface IFDBSupplier {
	
	 // get all Suppliers
    public ArrayList<Supplier> getAllSuppliers(boolean retriveAssociation);
    //get one supplier having the supID
    public Supplier findSupplier(int supId);
    //find one supplier having the name
    public Supplier searchSupplierName( String name);
    //find one supplier having the id
    public Supplier searchSupId(int supId);
    //insert a new supplier
    public int insertSupplier(Supplier sup) throws Exception;
    //update information about a supplier
    public int updateSupplier(Supplier sup);
    //delete a supplier using the supID
    public int deleteSupplier(int supID);

}
